package com.jinkaimen.goodcash.constant;

import com.ht.baselibs.application.HTApplication;

/**
 * Created by huangtao on 16/2/22.
 */
public class HttpConfig {
//    public static final String BASE_DEV_HOST = "http://192.168.1.99:8080/inventoryHSY/";
    public static final String BASE_DEV_HOST = "http://192.168.1.99:8080/inventoryHSY/";
//    public static final String BASE_DEV_HOST = "http://192.168.1.20:8072/inventoryHSY/";
    //    public static final String BASE_DEV_HOST = "http://baodan.qianbaojiajia.com/";
    public static final String BASE_HOST = "http://baodan.qianbaojiajia.com/";

    public static String BASE_URL = null;

    static {
        if (HTApplication.IS_DEBUG_MODE) {
            BASE_URL = BASE_DEV_HOST;
        } else {
            BASE_URL = BASE_HOST;
        }
    }

    public static final class Path {
        public static final String REST = "active/rest";
        public static final String REST_FILE = "active/file";
    }


    public static final class ResultCode {
        public static final int SUCCCESS = 2000;
        public static final int EMPTY = 1000;
        public static final int ERROR = 1001;
    }

    public static final class GlobalParam {
        public static final String ACCESS_TOKEN = "accessToken";
        public static final String TIME_STAMP = "timeStamp";
        public static final String V = "v";
        public static final String APP_TYPE = "appType";
        public static final String DEVICE_ID = "deviceid";
    }

}